package 结构器模式.适配器模式.classadapter;

/**
 * @Description TODO
 * @Author shallow
 * @Date 2023/3/4 14:43
 */

public class Computer {
    //从SD卡中读取数据
    public String readSD(SDCard sdCard){
        if(sdCard == null){
            throw new NullPointerException("SDCard不能为空");
        }
        return sdCard.readSD();
    }
}
